//
//  SingleImageCell.m
//  ExtModule
//
//  Created by CPX on 2018/9/11.
//  Copyright © 2018年 CPX. All rights reserved.
//

#import "SingleImageCell.h"

/**
 单个图片Cell
 */
@implementation SingleImageCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(GreetPicModel *)model{
    _model = model;
    UIImage * image_place = [UIImage imageNamed:@"place_holder400x300"];
    
    if (model.img_gif){
        self.gitBt.hidden = NO;
        [self.imageView sd_setImageWithURL:[NSURL URLWithString:model.img_thumbnail] placeholderImage:image_place];
    
    }
    else{
        self.gitBt.hidden = YES;
        [self.imageView sd_setImageWithURL:[NSURL URLWithString:model.img_thumbnail] placeholderImage:image_place];

    }
}

@end
